;window.onload = function(){
    searchHouse();
}
//专题列表
function searchHouse(){
    //$(".left").find("#zhuantiList").("tap",function () {
 
//      mui.ajax({
//          url: 'http://192.168.6.213:8080/YWGL/weixin/search/searchHouse.do?command=getHouseSourceType',
//          dataType: 'json',
//          type: 'post',
//          headers:{'Content-Type':'application/json'},  
//          header:{"Access-Control-Allow-Origin":"*"},
//          success: function (backData) {
//              var str = template("template", {dataArr: backData});
//              $('.mui-slider-loopl').html(str);
//          },
//          error:function(xhr,type,errorThrown){
//		//异常处理；
//		console.log("出错了"); 
//		} 
//      });
      var data = {
       	id:"1",
       	name:"你们"
       };
        mui.getJSONP('http://192.168.6.213:8080/YWGL/weixin/search/searchHouse.do?command=getHouseSourceType',
   			{data:encodeURI(JSON.stringify(data),"utf-8")},
            function(data) { 
		         console.log(data);
		});  
		/*mui.ajax('http://192.168.6.213:8080/YWGL/weixin/search/searchHouse.do?command=getHouseSourceType',{
			header:{'Content-Type':'application/json'},  
            header:{'Access-Control-Allow-Methods':'POST'}, 
            header:{"Access-Control-Allow-Origin":"*"},
			data:JSON.stringify(data),
			dataType:'json', 
			contentType: "application/json",
			type:'post',
			timeout:10000,
			success:function(data){
				alert(data.result);
			},
			error:function(xhr,type,errorThrown){ 
				//异常处理；
				alert("error"); 
			}, 
			
		});*/
    //})
}

//ajax.setRequestHeader("content-type","")
//mui.ajax('http://server-name/login.php',{
//	data:{
//		username:'username',
//		password:'password'
//	},
//	dataType:'json',//服务器返回json格式数据
//	type:'post',//HTTP请求类型
//	timeout:10000,//超时时间设置为10秒；
//	headers:{'Content-Type':'application/json'},	              
//	success:function(data){
	//服务器返回响应，根据响应结果，分析是否登录成功；
//		...
//	},
//	error:function(xhr,type,errorThrown){
//		//异常处理；
//		console.log(type);
//	}
//})